# SPDX-FileCopyrightText: 2023 Blender Authors
#
# SPDX-License-Identifier: GPL-2.0-or-later

if(WITH_BLENDER)
  if(WITH_INPUT_NDOF)
    add_definitions(-DWITH_INPUT_NDOF)
  endif()

  if(WITH_EXPERIMENTAL_FEATURES)
    add_definitions(-DWITH_GREASE_PENCIL_V3)
  endif()

  add_subdirectory(animation)
  add_subdirectory(armature)
  add_subdirectory(asset)
  add_subdirectory(curve)
  add_subdirectory(curves)
  add_subdirectory(geometry)
  add_subdirectory(gizmo_library)
  add_subdirectory(gpencil_legacy)
  add_subdirectory(grease_pencil)
  add_subdirectory(interface)
  add_subdirectory(io)
  add_subdirectory(lattice)
  add_subdirectory(mask)
  add_subdirectory(mesh)
  add_subdirectory(metaball)
  add_subdirectory(object)
  add_subdirectory(physics)
  add_subdirectory(render)
  add_subdirectory(scene)
  add_subdirectory(sculpt_paint)
  add_subdirectory(sound)
  add_subdirectory(space_action)
  add_subdirectory(space_api)
  add_subdirectory(space_buttons)
  add_subdirectory(space_clip)
  add_subdirectory(space_console)
  add_subdirectory(space_file)
  add_subdirectory(space_graph)
  add_subdirectory(space_image)
  add_subdirectory(space_info)
  add_subdirectory(space_nla)
  add_subdirectory(space_node)
  add_subdirectory(space_outliner)
  add_subdirectory(space_script)
  add_subdirectory(space_sequencer)
  add_subdirectory(space_spreadsheet)
  add_subdirectory(space_statusbar)
  add_subdirectory(space_text)
  add_subdirectory(space_topbar)
  add_subdirectory(space_userpref)
  add_subdirectory(space_view3d)
  add_subdirectory(transform)
  add_subdirectory(undo)
  add_subdirectory(util)
  add_subdirectory(uvedit)
  add_subdirectory(screen)
endif()

add_subdirectory(datafiles)
